home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMAAAAKKKKEEEEMMMMAAAAPPPP((((1111GGGG)))) MMMMAAAAKKKKEEEEMMMMAAAAPPPP((((1111GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- makemap - store colors into the gl color map
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- mmmmaaaakkkkeeeemmmmaaaapppp [ ----ffffuuuullllllll ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- A _c_o_l_o_r_m_a_p is a mapping from color-index values (integers) into RGB
- values. All _G_L programs (graphics programs linked with libgl) share a
- common X colormap, which is distinct from the default X root colormap.
-
- Essentially, _m_a_k_e_m_a_p causes a certain set of colors to be assigned to the
- GL colormap (which is just another X colormap as far as the X server is
- concerned).
-
- Although there may be multiple X colormaps defined in the system at any
- one time, only one of these X colormaps is _i_n_s_t_a_l_l_e_d (loaded into the
- single hardware colormap) at any given time. The _G_L colormap will be
- _i_n_s_t_a_l_l_e_d whenever _G_L programs have input focus.
-
- The _G_L colormap is relevant only for _G_L programs running in _c_m_o_d_e
- (color-index mode).
-
- By default, _m_a_k_e_m_a_p will initialize the first 256 entries in the _G_L
- colormap with the exception of color cells 16 thru 31. The reason for
- not initializing 16-31 is so that X clients can use those cells without
- interfering with _G_L programs. The lowest eight colors of the _G_L colormap
- are mapped to the eight standard colors of the Graphics Library (black,
- red, green, yellow, blue, magenta, cyan and white). The next 8 colors
- (8-15) are mapped to some pastel shades as used by the IRIS Workspace and
- other system tools. These colors can be dithered with the first eight to
- get a very wide range even on a minimal system when in double buffered
- mode. The next 16 colors (16-31) are left untouched. The next 24 colors
- (32 to 55) are mapped as a black to almost-white gray ramp. The
- remaining 200 colors (56 to 255) are mapped as a 5*8*5 color cube, which
- starts at black and ends with white. In this color cube, the 8 levels of
- green change the fastest, then 5 levels of red, and finally the 5 levels
- of blue change slowest.
-
- Options:
-
- ----ffffuuuullllllll If there are more than eight planes, map color cells 256-511 to the
- ordered color map used by some of the image tools in the 4DGifts
- package and colors 512-767 to a 256 level black to white gray ramp.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- loadmap(1G), savemap(1G), showmap(1G),
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-